﻿using System.Web;
using System.Web.Optimization;

namespace Mvc4WebApiKoTb
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.*"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/jquery-ui*", "~/Scripts/moment.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/Scripts/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            //BootStrap CSS einbinden für Twitter.Bootstrap - wenn man mit dem Entwickeln fertig ist,
            //hier die fertig übersetzte Css Datei einbinden.
            bundles.Add(new StyleBundle("~/Content/bootstrap").Include("~/Content/mybootstrap.css"));
            //Einbinden der benötigten JavaScript Dateien für Less und Twitter
            bundles.Add(new ScriptBundle("~/bundles/twitter").Include("~/Scripts/bootstrap.js",
                                                                      "~/Scripts/knockout-2.2.0.js", "~/Scripts/knockout.mapping-latest.js",
                                                                      "~/Scripts/moment.js", "~/Scripts/raphael-min.js",
                                                                      "~/Scripts/jquery.globalize/globalize.js", "~/Scripts/jquery.globalize/cultures/globalize.culture.de-DE.js"));
            bundles.Add(new ScriptBundle("~/bundles/less").Include("~/Scripts/less.min.js"));
            bundles.Add(new StyleBundle("~/Content/jqueryUi").Include("~/Content/themes/base/jquery-ui.css"));
        }
    }
}